package cn.lili.modules.goods.serviceimpl;

import cn.lili.modules.goods.entity.dos.GoodsBelong;
import cn.lili.modules.goods.entity.dto.GoodsBelongDTO;
import cn.lili.modules.goods.mapper.GoodsBelongMapper;
import cn.lili.modules.goods.service.GoodsBelongService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 免税商品归属 服务实现类
 * </p>
 *
 * @author admin
 * @since 2024-03-07
 */
@Service
@RequiredArgsConstructor
public class GoodsBelongServiceImpl extends ServiceImpl<GoodsBelongMapper, GoodsBelong> implements GoodsBelongService {


    @Override
    public Page<GoodsBelong> selectGoodsBelong(GoodsBelongDTO dto) {
        return baseMapper.selectPage(new Page<>(dto.getPageNumber(), dto.getPageSize()), dto.toQueryWrapper());
    }
}
